import request from '@/router/axios';
// 分页

// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 获取会议列表
export const getMeetingList = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/meetingList',
    method: 'get',
    params: {
      myTopic: '1',
      ...params
    }
  })
}
// 获取议题列表
export const getFtopicList = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/ftopicList',
    method: 'get',
    params: {
      ...params
    }
  })
}

// 报价供应商信息
export const getSupplierList = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/supplierList',
    method: 'get',
    params: {
      ...params
    }
  })
}

// 物料列表
export const materialList = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/materialList',
    method: 'get',
    params: {
      ...params
    }
  })
}

// 审批提名信息
export const rsnlInfo = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/rsnlInfo',
    method: 'get',
    params: {
      ...params
    }
  })
}

// 新增
export const save = (data) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/save',
    method: 'post',
    data
  })
}

export const detail = (id) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/detail',
    method: 'get',
    params: {
      id
    }
  })
}

// 删除
export const remove = (ids) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

// 提交审批提名
export const submit = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/submit',
    method: 'get',
    params
  })
}

export const ctopicList = (params) => {
  return request({
    url: '/api/blade-purchase/rsnlinfo/ctopicList',
    method: 'get',
    params: {
      ...params
    }
  })
}

